package Controller;

import javax.swing.*;

/**
 * This class starts the program.
 *
 * @author Matthew Page
 *         Date: 19/08/2010
 *         Time: 10:01:41 AM
 */
public class Start {
    /**
     * Starts the program.
     */
    public static void main(String[] args) {
        SimulationHandler sh = new SimulationHandler();
        int optionReturn;
        optionReturn = JOptionPane.showConfirmDialog(null, "Would you like to run the simulator in command prompt?\n Clicking NO will open up the GUI version");
        switch (optionReturn) {
            case 0:
                sh.runCommand();
                break;
            case 1:
                sh.runGUI();
                break;
            case 2:
                System.exit(0);
                break;
        }

    }
}
